package com.gxgeek.lock;

import java.util.concurrent.locks.LockSupport;

/**
 * @author gaoxing
 * @create 2017-12-19 下午1:58
 */
public class LockSupportDemo {
    public static void main(String[] args) {

        LockSupport.park();
        LockSupport.getBlocker(Thread.currentThread());
        LockSupport.unpark(Thread.currentThread());

    }
}
